fix Google Workspace connection probes - #1704
Conversation
|
Warning Review limit reached
Next review available in: 20 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughDrive and Gmail ChangesGoogle Workspace connection probes
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant check_connection
participant _check_connection_impl
participant GoogleWorkspaceAPI
check_connection->>_check_connection_impl: pass Drive or Gmail probe
_check_connection_impl->>GoogleWorkspaceAPI: execute service API request
GoogleWorkspaceAPI-->>_check_connection_impl: result or exception
_check_connection_impl-->>check_connection: connection_ok and error diagnostics
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🤖 Internal: Discord sync markerAuto-managed by the Discord notification workflow. Stores the linked Discord message ID and forum thread ID. Do not edit or delete. |
4891ae7 to
8dbbc12
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@nodes/src/nodes/tool_google_workspace/gmail/IInstance.py`:
- Around line 143-149: The check_connection method currently probes
users.getProfile for every Gmail access tier, which is incompatible with the
settings tier. Update the tier-specific connection logic used by
_check_connection_impl so each configured tier uses an API operation valid for
its required scopes, including a settings-scoped probe for gmail.settings.basic;
preserve missingScopes validation and add a regression test covering a
settings-only configuration.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 63a8f450-f55a-4fe7-a5bd-df08296f6749
📒 Files selected for processing (4)
nodes/src/nodes/tool_google_workspace/drive/IInstance.pynodes/src/nodes/tool_google_workspace/gmail/IInstance.pynodes/test/tool_google_workspace/drive/test_drive.pynodes/test/tool_google_workspace/gmail/test_gmail.py
8dbbc12 to
8f1b1c7
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
fixes #1694
changes
verification
PYTHONPATH=nodes/src:nodes/test:packages/server/engine-lib/rocketlib-python/lib /home/ericwang/Projects/upstream-contributions/rocketride-issue1638/.venv/bin/python -m pytest nodes/test/tool_google_workspace/gmail/test_gmail.py nodes/test/tool_google_workspace/drive/test_drive.py -qPYTHONPATH=nodes/src:nodes/test:packages/server/engine-lib/rocketlib-python/lib /home/ericwang/Projects/upstream-contributions/rocketride-issue1638/.venv/bin/python -m pytest nodes/test/tool_google_workspace/gmail/test_gmail.py -q/home/ericwang/Projects/upstream-contributions/rocketride-issue1638/.venv/bin/python -m ruff check nodes/src/nodes/tool_google_workspace/drive/IInstance.py nodes/src/nodes/tool_google_workspace/gmail/IInstance.py nodes/test/tool_google_workspace/drive/test_drive.py nodes/test/tool_google_workspace/gmail/test_gmail.py/home/ericwang/Projects/upstream-contributions/rocketride-issue1638/.venv/bin/python -m ruff format --check nodes/src/nodes/tool_google_workspace/drive/IInstance.py nodes/src/nodes/tool_google_workspace/gmail/IInstance.py nodes/test/tool_google_workspace/drive/test_drive.py nodes/test/tool_google_workspace/gmail/test_gmail.pygit diff --check